<template>
  <div>
    <!-- <Common :baseUrl :rules>
      <template #content="{ formData }">
        <el-row>
          <el-col :span="12">
            <el-form-item
              label="单值图默认节点展示数量"
              prop="sampleNum"
              :show-message="false"
            >
              <el-input v-model="formData.sampleNum" style="width: 65px" />
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="当超过控制限上下限，是否预警">
              <el-switch
                v-model="formData.isWarn"
                inline-prompt
                active-value="1"
                inactive-value="0"
                active-text="是"
                inactive-text="否"
              />
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item
              label="预警触发：连续超过控制限次数"
              prop="controlRate"
              :show-message="false"
            >
              <el-input v-model="formData.controlRate" style="width: 65px" />
            </el-form-item>
          </el-col>
        </el-row>
      </template>
    </Common> -->
  </div>
</template>
<script setup lang="ts">
import Common from "@/views/pcm/pcmsystemconfig/components/common.vue";

defineOptions({
  name: "PCMPCMSPECIALRULECOMMONSINGLE",
});

const baseUrl = "pcmconfigsingle";

const rules = {
  sampleNum: [
    {
      pattern: /^([0-9]{0,5})$/,
      message: "只能请输入五位正整数",
      trigger: ["blur", "change"],
    },
  ],
  controlRate: [
    {
      pattern: /^([0-9]{0,5})$/,
      message: "只能请输入五位正整数",
      trigger: ["blur", "change"],
    },
  ],
};
</script>

<style scoped lang="scss"></style>
